# def power(x):
#     return x * x
# print(power(6))

def power(x, n):
    sum = 1
    while n > 0:
        print('没乘之前sum的值', sum)
        print('没乘之前n的值', n)
        n = n - 1
        sum = sum * x
        print('乘之后n的值', n)
        print('乘之后sum的值', sum)
        print('====================================================')
    return sum

power(5,10)

# def enroll(name, gender):
#     print('name:', name)
#     print('gender:', gender)
# enroll('Sarah', 'F')